#include <stdio.h>
//常量字符串
int main()
{
    const char* p1 = "abcdef";
    const char* p2 = "abcdef";//常量字符串不可被修改，并且只会储存一个，加上const防止其被修改

    char arr1[] = "abcdef";
    char arr2[] = "abcdef";

    if(p1 == p2)//相等
    printf("p1 = p2\n");
    else
    printf("p1 != p2\n");

    if(arr1 == arr2)//不等
    printf("arr1 = arr2\n");
    else
    printf("arr1 != arr2\n");
    return 0;
}